<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="it技术，邱道章，博客，Java，大数据">
    <meta name="author" content="邱道长">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <link rel="stylesheet" href="../static/css/bootstrap.css" th:href="@{/css/bootstrap.css}">
    <title>邱道长的个人博客网站</title>
    <style>
      .description{
        color: rgba(0,0,0,.87)!important;
        font-size: 1rem!important;
      }
      .description:hover{
        cursor: text;

      }
      a.remove-underline{
        text-decoration: none;
      }
      .post-title{
        font-size: 1.2rem;
      }

      a.active{
        color: gray;
        cursor: text;
      }

      .nopage:not(:disabled):not(.disabled) {
        cursor: text!important;
      }

      .main{
        min-height: 750px;
      }


    </style>
  </head>
  <body>
  <a href="#">sfsdf</a>
  <!--头部导航-->
  <nav th:replace="common/navbar::navbar">
  </nav>
    <!-- Main Content -->
    <div class="container main" style="margin-top: 50px;">
      <div class="row">
        <div class="col-lg-2  " style="margin-bottom: 20px">
          热门标签：
          <div th:each="obj:${tags}" >
            <a href="" th:href="@{'/tag/get/' + ${obj.tagId}}" th:text="${obj.name}"></a>
          </div>

        </div>
        <div class="col-lg-8 col-md-10 mx-auto" >
          <div th:if="${ p.list.empty}" th:text="空空如也，看点别的吧！">

          </div>
          <div   th:each="obj:${p.list}">
            <a class="remove-underline"   th:href="@{'/article/get/'+${obj.articleId}}">
              <h2 class="post-title" th:text="${obj.title}">
              </h2>
            </a>
            <h3 class="description" th:text="${obj.description}">
            </h3>
            <p class="post-meta" style="font-size: 20px">作者：
              <span  style="font-family: 楷体; color: rgb(0, 123, 255)">邱道长</span>
              <span th:text="${#dates.format(obj.createTime)}"></span></p>
          </div>
          <!--<hr>-->
          <!-- Pager -->
          <div class="clearfix">
          </div>

        </div>

        <div class="col-lg-2">
          热门文章：
        </div>
      </div>

      <div class="row">
        <div class="col-lg-8 offset-lg-2">
          <ul class="pagination pagination-lg" id="pagination">

          </ul>
        </div>
      </div>
    </div>

  <!--footer start================-->
  <!--<footer class="page-footer font-small blue pt-4">-->
  <footer class="">
    <div class="container">
      <div class="row">
        <div  class="col-lg-12" >
          <h2 align="center" style="color: #6f42c1">你不需要追随，但你必须见证！</h2>
        </div>
      </div>
    </div>
    <!-- Copyright -->
    <div class="footer-copyright text-center py-3">Copyright &copy; 2017-2018
      <a href="https://mdbootstrap.com/education/bootstrap/">道道范 粤ICP备18019273号-1 daodaofun.com</a>
    </div>
    <!-- Copyright -->
  </footer>
  <!--footer end================-->
  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
  <script src="../static/js/pagination.js" th:src="@{/js/pagination-2.js}"></script>
  <script th:inline="javascript">
    $(function () {
        var pageNum = [[${p.pageNum}]];
        var pageSize = [[${p.pageSize}]];
        var pages = [[${p.pages}]];
        var categoryId = [[${categoryId}]]
        // page('#pagination',pageNum,pageSize,pages,7);
      let p = new Page();
      p.createPage('#pagination',pageNum,pageSize,pages,7,'/category/get/'+categoryId);
    })
  </script>
  <script th:src="@{/js/search.js}"></script>
  </body>

</html>
